package com.mz.user.api;

import com.mz.common.domain.SysMenu;
import com.mz.common.domain.SysUser;
import com.mz.common.page.PageList;
import com.mz.feign.config.FeignReqConfig;
import com.mz.user.api.query.UserQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author: soulcoder
 * @datetime: 2020/6/18 16:31
 * @description: TODO
 */
@FeignClient(value="mz-user",path ="usercenter",configuration= FeignReqConfig.class)
public interface SysUserServiceFeign {
    /**
     *  @description:  根据用户名得到用户
     *  @params:  username
     *  @return  返回用户信息
     *
     */
    @GetMapping(value = "info/{username}")
    String get(@PathVariable(value="username") String username);

    /**
     *  @description: 根据用户id查询菜单
     *  @Params:   userId
     *  @Return   List<SysMenu>
     *
     */
    @GetMapping(value = "findByUserId")
    String findByUserId(@RequestParam("userId")Long userId);


}
